# 装饰器 AOP思想
import  time
def decrator(func):
    def wrapper(*args,**kw):
        print(time.time())
        func(*args,**kw)
    return wrapper
@decrator
def f1(func_name):
    print("This is a function"+func_name)

@decrator
def f2(func_name1,func_name2):
    print("This is a function"+func_name1)
    print("This is a function"+func_name2)

@decrator
def f3(func_name1,func_name2,**kw):
    print("This is a function"+func_name1)
    print("This is a function"+func_name2)
    print(kw)
# f = decrator(f1)
# f()
f1("test func")
f2('test func1','test func2')
f3 ('test func1','test func2',a=1,b=2,c=3)